package thread;

import lombok.extern.log4j.Log4j2;

/**
 * @author : ZhuQi
 * @version : 时间:2022/7/26 11:37 版本:
 * 继承 Thread 实现创建线程执行任务
 */
@Log4j2
public class MyThreadOne extends Thread{

    /**
     * If this thread was constructed using a separate
     * <code>Runnable</code> run object, then that
     * <code>Runnable</code> object's <code>run</code> method is called;
     * otherwise, this method does nothing and returns.
     * <p>
     * Subclasses of <code>Thread</code> should override this method.
     *
     * @see #start()
     * @see #stop()
     */
    @Override
    public void run() {

        log.info("MyThread is Runing");
    }

    public static void main(String[] args) {
        new MyThreadOne().start();
    }
}
